import {request} from "../request.js"
export function distinguish(fileName){
	const query = {
		fileName:fileName
	}
	return request({
		url:"/classification/distinguish",
		method:"GET",
		data:query
	})
}

export function categoryTree(){
	return request({
		url:"/classification/categoryTree",
		method:"GET"
	})
}

//根据classId 查询值
export function getCategoryById(query){
	return request({
		url:"/classification/getClassificationById",
		method:"GET",
		data:query
	})
}

//模糊搜索水果
export function searchCategory(keyword){
	const query = {
		keyword
	}
	return request({
		url:"/classification/searchByKeyWord",
		method:"GET",
		data:query
	})
}

export function getDistinguishClassId(query){
	return request({
		url:"/classification/getDistinguishClassId",
		method:"GET",
		data:query
	})
	
}
